package cn.wolfcode.crm.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

//json需要

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class JsonResult {
    private boolean succeed = true;
    private String errorMsg;

    public void markErrorMsg(String errorMsg) {
        this.succeed = false;
        this.errorMsg = errorMsg;
    }
}
